# @Desc    : do what 
# @Author  : meihongliang  
# @Time    : 2025-05-08 02:05
from fastapi import APIRouter, Depends
from myapp.services.user_service import get_user  # 绝对导入
from myapp.utils.autil import validate_input      # 绝对导入

router = APIRouter()

@router.get("/users/{id}")
async def read_user(id: int):
    validate_input(id)  # 工具函数调用
    return get_user(id)